home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 7: Sunsite / Linux Cubed Series 7 - Sunsite Vol 1.iso / system / network / file-tra / fsp-2.7 / fsp-2 / fsp / include / client_conf.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-06-09  |  2.5 KB  |  64 lines

  1. #ifndef _FSP_CLIENT_CONF_H_
  2. #define _FSP_CLIENT_CONF_H_
  3.  
  4. /****************************************************************************
  5.  * Set this to point to the system wide default .fsp_prof file.             *
  6.  * This file is used by fhostcmd to semi-automate the setting of            *
  7.  * environment variable to ease the use of fsp                              *
  8.  * It is only checked if neither ./.fsp_prof nor ~/.fsp_prof exist          *
  9.  ****************************************************************************/
  10. #ifdef VMS
  11. #define FSPRC "sys$common:fsp_prof"
  12. #else
  13. #define FSPRC "/usr/local/fsp_prof"
  14. #endif
  15. /****************************************************************************
  16.  * Define the following if you want the client programs to time out and     *
  17.  * abort after a certain period (period is settable via an environment      *
  18.  * variable.  See the INFO, client man pages, and ChangeLog files for       *
  19.  * details                                                                  *
  20.  ****************************************************************************/
  21. #define CLIENT_TIMEOUT 1
  22.  
  23. /****************************************************************************
  24.  * Define the following if you want fhostcmd to attempt to perform name     *
  25.  * lookup on numeric host and numeric lookup on named hosts                 *
  26.  ****************************************************************************/
  27. #define HOST_LOOKUP 1
  28.  
  29. /****************************************************************************
  30.  * The following code tries to set the file locking mechanism to the one    *
  31.  * best suited for your system.  This should only be changed if the auto    *
  32.  * configuration code fails and it doesn't compile.  That sort of bug       *
  33.  * should also be immediately reported to the maintainers listed in the     *
  34.  * INFO file                                                                *
  35.  ****************************************************************************/
  36. #define KEY_PREFIX "/usr/tmp/.FL"
  37. /* #define USE_SHAREMEM_AND_LOCKF 1*/
  38. /* #define USE_FLOCK 1 */
  39. /* #define USE_LOCKF 1 */
  40. /* #define NOLOCKING 1 */
  41. #ifdef HAVE_SHMEM
  42. #ifdef HAVE_LOCKF
  43. #define USE_SHAREMEM_AND_LOCKF 1
  44. #else
  45. #ifdef HAVE_FLOCK
  46. #define USE_FLOCK 1
  47. #else
  48. #define NOLOCKING 1
  49. #endif /* HAVE_FLOCK */
  50. #endif /* HAVE_LOCKF */
  51. #else
  52. #ifdef HAVE_LOCKF
  53. #define USE_LOCKF 1
  54. #else
  55. #ifdef HAVE_FLOCK
  56. #define USE_FLOCK 1
  57. #else 
  58. #define NOLOCKING 1
  59. #endif /* HAVE_FLOCK */
  60. #endif /* HAVE_LOCKF */
  61. #endif /* HAVE_SHMEM */
  62.  
  63. #endif /* _FSP_CLIENT_CONF_H_ */
  64.